package com.bawei.yangzongcai___chenmei.BlankFragment.Blanck2;


import android.animation.ArgbEvaluator;
import android.animation.ObjectAnimator;
import android.view.View;
import android.view.animation.BounceInterpolator;
import android.widget.Button;
import android.widget.ImageView;

import com.bawei.yangzongcai___chenmei.MVC.BsaeFragment;
import com.bawei.yangzongcai___chenmei.R;


public class BlankFragmentQAQ2 extends BsaeFragment {


    private Button haiyang;
    private Button diwangxie;
    private Button haidan;
    private Button jinqiang;
    private ImageView dahaiImg;

    @Override
    public int bandLayout() {
        return R.layout.fragment_blank_fragment_qaq2;
    }

    @Override
    public void initView() {

        haiyang = findbandid(R.id.haiyang);
        diwangxie = findbandid(R.id.diwangxie);
        haidan = findbandid(R.id.haidan);
        jinqiang = findbandid(R.id.jinqiang);
        dahaiImg = findbandid(R.id.dahaiImg);
    }

    @Override
    public void initDate() {
        haiyang.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ObjectAnimator objectAnimator =ObjectAnimator.ofInt(dahaiImg,"BackgroundColor",0xffff00ff, 0xffffff00, 0xffff00ff);
                objectAnimator.setDuration(10000);
                objectAnimator.setEvaluator(new ArgbEvaluator());
                objectAnimator.setRepeatCount(3);
                objectAnimator.setInterpolator(new BounceInterpolator());
                objectAnimator.start();
            }
        });



    }
}
